package cn.stylefeng.guns.modular.business.mapper;

import cn.stylefeng.guns.modular.business.entity.Carousel;
import cn.stylefeng.guns.modular.business.model.params.CarouselParam;
import cn.stylefeng.guns.modular.business.model.result.CarouselResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 首页轮播图片管理 Mapper 接口
 * </p>
 *
 * @author pzp
 * @since 2019-09-10
 */
public interface CarouselMapper extends BaseMapper<Carousel> {

    /**
     * 获取列表
     *
     * @author pzp
     * @Date 2019-09-10
     */
    List<CarouselResult> customList(@Param("paramCondition") CarouselParam paramCondition);

    /**
     * 获取map列表
     *
     * @author pzp
     * @Date 2019-09-10
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") CarouselParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author pzp
     * @Date 2019-09-10
     */
    Page<CarouselResult> customPageList(@Param("page") Page page, @Param("paramCondition") CarouselParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author pzp
     * @Date 2019-09-10
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") CarouselParam paramCondition);

    /**
     * 首页轮播图
     *
     * @return
     */
    List<CarouselResult> get();
}
